package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.hl.mapper.MemberReviewsMapper;
import com.hl.domain.MemberReviews;
import com.hl.service.IMemberReviewsService;

/**
 * 会员评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-05
 */
@Service
@Primary
public class MemberReviewsServiceImpl implements IMemberReviewsService 
{
    @Autowired
    private MemberReviewsMapper memberReviewsMapper;

    /**
     * 查询会员评价
     * 
     * @param id 会员评价主键
     * @return 会员评价
     */
    @Override
    public MemberReviews selectMemberReviewsById(Integer id)
    {
        return memberReviewsMapper.selectMemberReviewsById(id);
    }

    /**
     * 查询会员评价列表
     * 
     * @param memberReviews 会员评价
     * @return 会员评价
     */
    @Override
    public List<MemberReviews> selectMemberReviewsList(MemberReviews memberReviews)
    {
        return memberReviewsMapper.selectMemberReviewsList(memberReviews);
    }

    /**
     * 新增会员评价
     * 
     * @param memberReviews 会员评价
     * @return 结果
     */
    @Override
    public int insertMemberReviews(MemberReviews memberReviews)
    {
        return memberReviewsMapper.insertMemberReviews(memberReviews);
    }

    /**
     * 修改会员评价
     * 
     * @param memberReviews 会员评价
     * @return 结果
     */
    @Override
    public int updateMemberReviews(MemberReviews memberReviews)
    {
        return memberReviewsMapper.updateMemberReviews(memberReviews);
    }

    /**
     * 批量删除会员评价
     * 
     * @param ids 需要删除的会员评价主键
     * @return 结果
     */
    @Override
    public int deleteMemberReviewsByIds(Integer[] ids)
    {
        return memberReviewsMapper.deleteMemberReviewsByIds(ids);
    }

    /**
     * 删除会员评价信息
     * 
     * @param id 会员评价主键
     * @return 结果
     */
    @Override
    public int deleteMemberReviewsById(Integer id)
    {
        return memberReviewsMapper.deleteMemberReviewsById(id);
    }
}
